<?php $users = $this->getAllEmployee();?>
<a class="btn btn-blue" href="<?php echo Epic::getUrl('admin/acc/addEmployee');?>">Add Employee</a>
<div class="box round first grid">
<h2>Employees</h2>
	<div class="block">
		<table class="data display datatable" id="example">
		<thead>
			<tr>
				<th>ID</th>
				<th>Name Employ</th>
				<th>Email</th>
				<th>Tool</th>
			</tr>
		</thead>
		<tbody>
			<?php if ($users!=null):?>
				<?php foreach ($users as $user ):?>
					<tr id="employee_<?php echo $user['id_admin']?>">
						<td><?php echo $user['id_admin']?></td>
						<td><?php echo $user['username']?></td>
						<td><?php echo $user['email']?></td>
						<td>
							<a class="btn-mini btn-black btn-view" href="<?php echo Epic::getUrl('admin/acc/listEmployee',array('id_admin'=>$user['id_admin']))?>"><span></span>View</a>
							<a class="btn-mini btn-black btn-edit" href="<?php echo Epic::getUrl('admin/acc/addEmployee',array('id_admin'=>$user['id_admin']))?>"><span></span>Edit</a>
							<a class="btn-mini btn-black btn-delete" onclick="return deleter_employee(<?php echo $user['id_admin']?>);"><span></span>Delete</a>
						</td>
					</tr>
				<?php endforeach;?>
			<?php endif;?>
		</tbody>
		</table>
	</div>
</div>